import static org.junit.Assert.*;

import org.junit.Test;


/**
 * @author Harrison
 */
public class AnalystTest {

	@Test
	public void testAnalyst() {
		Analyst tempAnalyst = new Analyst();
		assertNotNull(tempAnalyst);
	}
	
	@Test
	public void testAddNewDraft() {
		Analyst tempAnalyst = new Analyst();
		int oldDraftCount = tempAnalyst.myDraftList.size();
		tempAnalyst.addNewDraft(new Draft("fake name", "fakefile.txt"));
		assertEquals(tempAnalyst.myDraftList.size(), oldDraftCount + 1);
	}

	@Test
	public void testGetaAllDrafts() {
		Analyst tempAnalyst = new Analyst();
		assertEquals(tempAnalyst.getAllDrafts("yohan mcnobody"), -1);
	}
	
	@Test
	public void testToString() {
		Analyst tempAnalyst = new Analyst();
		assertEquals(tempAnalyst.toString(), "[]");
	}
}
